{extends file="./main.tpl"}
{block name=head}
<script type="text/javascript" src="./js/guj.js"></script>
  <script type="text/javascript">
    google.load("elements", "1", 
    {
      packages: "transliteration"
    });

    function onLoad() 
    {
      var options = 
      {
        sourceLanguage:
        google.elements.transliteration.LanguageCode.ENGLISH,
        destinationLanguage:
        google.elements.transliteration.LanguageCode.GUJARATI,
        shortcutKey: 'ctrl+g',
        transliterationEnabled: true
      };
      var control = new google.elements.transliteration.TransliterationControl(options);
      var ids = [ "partyName" ];
      control.makeTransliteratable(ids);
      control.showControl('translControl', 
      {
        controlType: google.elements.transliteration.TransliterationControl.
        ControlType.SINGLE_LANGUAGE_BUTTON
      });
    }
    google.setOnLoadCallback(onLoad);
  </script>
  <script type="text/javascript">
    google.load("elements", "1", 
    {
      packages: "transliteration"
    });

    function onLoad() 
    {
      var options = 
      {
        sourceLanguage:
        google.elements.transliteration.LanguageCode.ENGLISH,
        destinationLanguage:
        google.elements.transliteration.LanguageCode.GUJARATI,
        shortcutKey: 'ctrl+g',
        transliterationEnabled: true
      };
      var control = new google.elements.transliteration.TransliterationControl(options);
      var ids = [ "address" ];
      control.makeTransliteratable(ids);
      control.showControl('translControl', 
      {
        controlType: google.elements.transliteration.TransliterationControl.
        ControlType.SINGLE_LANGUAGE_BUTTON
      });
    }
    google.setOnLoadCallback(onLoad);
  </script>
   <script type="text/javascript">
    google.load("elements", "1", 
    {
      packages: "transliteration"
    });

    function onLoad() 
    {
      var options = 
      {
        sourceLanguage:
        google.elements.transliteration.LanguageCode.ENGLISH,
        destinationLanguage:
        google.elements.transliteration.LanguageCode.GUJARATI,
        shortcutKey: 'ctrl+g',
        transliterationEnabled: true
      };
      var control = new google.elements.transliteration.TransliterationControl(options);
      var ids = [ "khataNo" ];
      control.makeTransliteratable(ids);
      control.showControl('translControl', 
      {
        controlType: google.elements.transliteration.TransliterationControl.
        ControlType.SINGLE_LANGUAGE_BUTTON
      });
    }
    google.setOnLoadCallback(onLoad);
  </script>
   <script type="text/javascript">
    google.load("elements", "1", 
    {
      packages: "transliteration"
    });

    function onLoad() 
    {
      var options = 
      {
        sourceLanguage:
        google.elements.transliteration.LanguageCode.ENGLISH,
        destinationLanguage:
        google.elements.transliteration.LanguageCode.GUJARATI,
        shortcutKey: 'ctrl+g',
        transliterationEnabled: true
      };
      var control = new google.elements.transliteration.TransliterationControl(options);
      var ids = [ "waight" ];
      control.makeTransliteratable(ids);
      control.showControl('translControl', 
      {
        controlType: google.elements.transliteration.TransliterationControl.
        ControlType.SINGLE_LANGUAGE_BUTTON
      });
    }
    google.setOnLoadCallback(onLoad);
  </script>
   <script type="text/javascript">
    google.load("elements", "1", 
    {
      packages: "transliteration"
    });

    function onLoad() 
    {
      var options = 
      {
        sourceLanguage:
        google.elements.transliteration.LanguageCode.ENGLISH,
        destinationLanguage:
        google.elements.transliteration.LanguageCode.GUJARATI,
        shortcutKey: 'ctrl+g',
        transliterationEnabled: true
      };
      var control = new google.elements.transliteration.TransliterationControl(options);
      var ids = [ "item" ];
      control.makeTransliteratable(ids);
      control.showControl('translControl', 
      {
        controlType: google.elements.transliteration.TransliterationControl.
        ControlType.SINGLE_LANGUAGE_BUTTON
      });
    }
    google.setOnLoadCallback(onLoad);
  </script>
   <script type="text/javascript">
    google.load("elements", "1", 
    {
      packages: "transliteration"
    });

    function onLoad() 
    {
      var options = 
      {
        sourceLanguage:
        google.elements.transliteration.LanguageCode.ENGLISH,
        destinationLanguage:
        google.elements.transliteration.LanguageCode.GUJARATI,
        shortcutKey: 'ctrl+g',
        transliterationEnabled: true
      };
      var control = new google.elements.transliteration.TransliterationControl(options);
      var ids = [ "financedRs" ];
      control.makeTransliteratable(ids);
      control.showControl('translControl', 
      {
        controlType: google.elements.transliteration.TransliterationControl.
        ControlType.SINGLE_LANGUAGE_BUTTON
      });
    }
    google.setOnLoadCallback(onLoad);
  </script>
{/block}
{block name=body}
<center><h1>Bill</h1></center>
<form method="POST" action="{$smarty.server.PHP_SELF}" name="billForm">
  <table align="center" border="0">
    <tr>
      <th align="right" class="table1"> Loan No : </th>
      <td class="table2"><input type="text" name="loan" size="23" autofocus="autofocus" id="loanNo"></td>
    </tr>
    <tr>
      <th align="right" class="table1"> Party name : </th>
      <td class="table2"><input type="text" name="name" size="23" id="partyName"></td>
    </tr>
    <tr>
      <th align="right" class="table1"> Addreass : </th>
      <td class="table2"><input type="text" name="address" size="23" id="address"></td>
    </tr>
    <tr>
      <th align="right" class="table1"> Account No : </th>
      <td class="table2"><input type="text" name="khataNo" size="23" id="khataNo"></td>
    </tr>
    <tr>
      <th align="right" class="table1"> Date : </th>
      <td class="table2">{html_select_date prefix='curDate' field_order="DmY" month_format="%m" start_year='-5' end_year='+5' 
      	   time=$today|date_format:"%d-%m-%Y" day_value_format="%02d"}</td>
    </tr>    
    <tr>
      <th align="right" class="table1"> Waight : </th>
      <td class="table2"><input type="text" name="waight" size="23" id="waight"></td>
    </tr>
    <tr>
      <th align="right" class="table1"> Item : </th>
      <td class="table2"><input type="text" name="item" size="23" id="item"></td>
    </tr>
    <tr>
      <th align="right" class="table1"> Financed Rs. : </th>
      <td class="table2"><input type="text" name="loanAmount" size="23" id="financedRs"></td>
    </tr>
    <tr>
      <td colspan="2" align="center"><input type="submit" name="billSubmit"></td>
    </tr>
  </table>
</form>
{/block}